import service from "./request"

const get = function(url, params) {
  return service({
    url,
    params,
    method: 'get'
  })
}

const post = function(url, data) {
  return service({
    url,
    data,
    method: 'post'
  })
}

const postF = function(url, data) {
  return service({
    url,
    data,
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}



export {
  get,
  post,
  postF
}